package com.c6906.vdam.das.dao;

import com.c6906.vdam.das.model.entity.VehiclesSetConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface VehicleSetConfigDAO {
    List<VehiclesSetConfig> selectAllTask();

    int updateRetryTimesByCmdID(@Param("retryTimes") int retryTimes, @Param("cmdId") Long cmdId, @Param("sendTime") Date sendTime);

    int updateTaskStatusByCmdID(@Param("retryTimes") int retryTimes, @Param("cmdId") Long cmdId, @Param("sendTime") Date sendTime);

    int updateSucessByCmdID(@Param("retryTimes") int retryTimes, @Param("cmdId") Long cmdId);
}
